import * as api from '@/api/home/employees.js'
export default {
    namespaced: true,
    state: {
        userList: []
    },
    mutations: {
        ser_userList(state, value) {
            state.userList = value.rows
        }
    },
    actions: {
        async updatedUserList(ctx, page) {
            await api.getUserList(page).then((res) => {
                // console.log(res);
                ctx.commit('ser_userList', res.data.data)
                console.log(res.data.data);
            })
        }
    }
}